name_list=["lan","wang","fang"]

#在-in
print("lan" in name_list)   #True
#不在-not in
print("lan" not in name_list)   #False